<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录</title>
<link href="/stylesheets/public-style.css" rel="stylesheet" type="text/css" />
<link href="/stylesheets/login/login01.css" rel="stylesheet" type="text/css" />
<script src="/javascripts/prototype.js" type="text/javascript"></script>
<script>
 function sm(){
 var f= document.getElementById("login_form");
  f.submit();
 }

window.onload = function() {
  document.getElementById("username-input").focus();

  //document.onkeydown = function() {
  //  if(event.keyCode==13) {
  //    document.getElementById("login_form").submit();
  //    return false;
  //  }
  //}
}

function SubmitKeyClick(obj, evt) {
  evt = (evt) ? evt : ((window.event) ? window.event : "")
  keyCode = evt.keyCode ? evt.keyCode : (evt.which ? evt.which : evt.charCode);
  if (keyCode == 13) {
    document.getElementById("login_form").submit();
  }
}

</script>
</head>
<body>
<div class="container">
	<div class="main">
  	<div class="leftbg"><img src="/images/login/login2-bg_03.jpg" width="6" height="396" alt="心嘉源会员登陆系统" /></div>
    <div class="center">
    	<div class="upbg"><img src="/images/login/login2_04.jpg" width="693" height="7" alt="心嘉源会员登陆系统" /></div>
      <div class="center02">
      	<div class="up">
        	<div class="left">
          	<div class="left-font">
            <img src="/images/login/login2-font.jpg" width="330" height="122" alt="心嘉源心理测评系统" />
            </div>
          </div>
          <div class="right">
          <form id="login_form" action="temp_user" method="post">
          <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s,
                                 :value => form_authenticity_token) %>
              <div class="falsh_notice"><p style="color: red"><%= flash[:error_notice]%></p>
              <p style="color: green"><%= flash[:notice] %></p></div>
          	<div class="loginbar">
                  <h1>用户名：</h1><input type="text" id="username-input" class="text-input" name="username"/>
            </div>
            <div class="loginbar2">
           <h1> 密　码：</h1><input type="password" class="text-input" name="password" onkeydown="return SubmitKeyClick(this,event)" />
            </div>
            <!--
						<div  id="re_load" class="loginbar2">
            <h1>验证码：</h1>
            <div style="display:none"><=show_simple_captcha  %></div>
					   <h2><= @simple_captcha_options[:field] %></h2>
					   <h3><= @simple_captcha_options[:image] %></h3>
					  </div>
                                          <div class="loginbar3" style="margin-left:-20px;width:120px">
					  请输入图片中的字母
					   </div>
					   <div class="loginbar3">
					   <h1></h1>
					   <h3><= @simple_captcha_options[:image] %></h3>
             </div>
                                         -->
                                           
						<div class="anniu">
						<a href="#" onclick="sm();"><img src="/images/login/denglu_03.jpg" width="75" height="24" /></a>
						</div>
						</form>
          </div>
        </div>
        <div class="down">
        北京心嘉源咨询有限公司 CopyRight © www.iyaoi.cn 2009
        </div>
      </div>
      <div class="downbg"><img src="/images/login/login2_04-05.jpg" width="693" height="7" alt="心嘉源会员登陆系统" /></div>
    </div>
    <div class="rightbg"><img src="/images/login/login2-bg_05.jpg" width="6" height="396" alt="心嘉源会员登陆系统" /></div>  
  </div>
</div>
</div>

</body>
